$ () ->
	pageUrl =
			case_list: "/admin/case/list"
			create_case: "/admin/case/create"
			user_list: "/admin/account/list"
			create_user: "/admin/account/create"
			case_type: "/admin/case-type/list"
			level: "/admin/level/list"
			log: "/admin/log/list"
			section: "/admin/set/list"
			submit_list: "/admin/submit/list"
			
	for key,value of pageUrl
		if window.location.pathname is value
			$("#"+key).addClass("click-now")

	$(".child").click (e) ->
		
		for key,value of pageUrl
			if key is this.id
				jumpUrl = key
				break
		return window.location.href =pageUrl[jumpUrl]
